﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace ModernUILogViewer.Settings
{
    class NetworkSettings : ApplicationSettingsBase
    {
        [UserScopedSettingAttribute()]
        [DefaultSettingValue("proxy")]
        public string Host
        {
            get { return (string)(this["Host"]); }
            set { this["Host"] = value; }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValue("8080")]
        public int Port
        {
            get { return (int)(this["Port"]); }
            set { this["Port"] = value; }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValue("")]
        public string User
        {
            get { return (string)(this["User"]); }
            set { this["User"] = value; }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValue("")]
        public string Password
        {
            get { return (string)(this["Password"]); }
            set { this["Password"] = value; }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValue("")]
        public string Domain
        {
            get { return (string)(this["Domain"]); }
            set { this["Domain"] = value; }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValue("false")]
        public bool EnableProxy
        {
            get { return (bool)(this["EnableProxy"]); }
            set { this["EnableProxy"] = value; }
        }
    }
}
